The standard dialog component provides a single utility function that you can use to create a graphics world that is appropriate for the current compression settings. This function is described next.
The SCNewGWorld function creates a graphics world based on the current compression settings.
pascal ComponentResult SCNewGWorld (ComponentInstance ci,
GWorldPtr *gwp, Rect *rp,
GWorldFlags flags);
The SCNewGWorld function creates a graphics world that can accommodate the current compression settings, including color table and grayscale settings (if appropriate). If the selected color table is inappropriate for the pixel depth, the standard dialog component uses a standard color for the depth.